import common from './common'
import paths from './paths'

const practiceService = {};
(function (service) {
    service.savePractice = function (params, practiceDTO) {
      return common.post(paths.practice.savePractice, params, practiceDTO)
    }
    service.deletePractice = function (params) {
      return common.get(paths.practice.deletePractice, params)
    }
    service.getPracticeById = function (params) {
      return common.get(paths.practice.getPracticeById, params)
    }
    service.getSharePracticeList = function (params) {
      return common.get(paths.practice.getSharePracticeList, params)
    }
    service.searchPractice = function (params, data) {
      return common.post(paths.practice.searchPractice, params, data)
    }
    service.practiceMove = function (params) {
      return common.get(paths.practice.practiceMove, params)
    }
})(practiceService)
export default practiceService
